<template>
  <div class="container">
    <h1>欢迎来到电商管理后台</h1>
    <div class="content">
      <p>让我们一起打造高效、智能的电商世界。</p>
      <button class="dashboard-btn" @click="btn">进入后台</button>
    </div>
  </div>
</template>

<script>
import Users from './user/Users.vue'
export default {
  name: 'Welcome',
  methods: {
    btn() {
      this.$router.push({
        path: '/users',
        component: Users,
      })
    },
  },
}
</script>

<style scoped>
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC&display=swap');

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  font-family: 'Noto Serif SC', serif;
}

h1 {
  font-size: 5em;
  margin-bottom: 50px;
}

.content {
  text-align: center;
}

p {
  font-size: 2em;
  margin-bottom: 30px;
}

.dashboard-btn {
  display: inline-block;
  padding: 10px 30px;
  font-size: 1.5em;
  border-radius: 5px;
  background-color: #007aff;
  color: #fff;
  transition: all 0.3s ease-in-out;
  border: none;
  cursor: pointer;
}

.dashboard-btn:hover {
  background-color: #fff;
  color: #007aff;
  border: 2px solid #007aff;
}
</style>
